parse_formulae.cpp